<?php
    $session = \Yii::$app->session;
    $user = isset($_SESSION['user']) ? $_SESSION['user'] : null; //查询session
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<!--The content below is only a placeholder and can be replaced.-->

<link rel="stylesheet" href="./css/base/bootstrap/css/bootstrap.css">

<link rel="stylesheet" href="/css/basic.css">

<nav class="navbar navbar-inverse" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">

            <img src="/img/tongbu.png" height="44px;" />

        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav">

                <li class="active"><a href="/index.php?r=home/index">文件管理</a>
                </li>
                <li class="active"><a href="/index.php?r=home/project">分类管理</a>
                </li>
                <li class="active"><a href="#">系统设置</a>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a>欢迎您,<?= isset($user)? $user:'<script language="javascript" type="text/javascript"> window.location.href="/index.php?r=home/login";</script>'?></a>

                </li>
                <li><a href="/index.php?r=home/logout">安全退出</a>
                </li>
            </ul>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-2">

            <a href="#" class="list-group-item active">文件管理</a>

            <a href="/index.php?r=home/index" class="list-group-item">
                文件列表</a>
            <a href="/index.php?r=home/addfile" class="list-group-item">
                增加文件</a>
            <a href="/index.php?r=home/download" class="list-group-item">
                下载文件</a>

            <a href="#" class="list-group-item active">项目管理</a>

            <a href="/index.php?r=home/project" class="list-group-item">
                项目列表</a>
            <a href="/index.php?r=home/addproject" class="list-group-item">
                增加项目</a>
            <a href="/index.php?r=home/getward" class="list-group-item">
                获取报告</a>

        </div>
        <?=$content?>   <!--它就是用来接收传过来的数据的-->

</body>
</html>